#include "Timer.h"
#include "GameEngine.h"

void Timer::Start( DWORD delay )
{
    m_Time = GameEngine::GetTime();
    m_Delay = delay;
}

bool Timer::IsFinished()
{
    return (::GetTickCount() - m_Time) >= m_Delay;
}

Timer::Timer()
{
    m_Delay = 0;
    m_Time = 0;
}

DWORD Timer::TimeElapsed()
{
    return GameEngine::GetTime() - m_Time;
}